package com.question.service;

import java.util.List;


import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.TablePage;

import com.question.entity.Multiple;
import com.question.entity.dto.MultipleDTO;


public interface IMultipleService {
	public List<MultipleDTO> findAll();
	public void saveOrUpdate(Multiple multiple,String[] answerKey);
	public void delete(Long id);
	public TablePage<MultipleDTO> findPage(Specification<Multiple> spec,Pageable pageable);
	public TablePage<Multiple> findRealPage(Specification<Multiple> spec,Pageable pageable);
	public Multiple findOne(Long id);
	public boolean isNumExist(Multiple multiple);
	public boolean isUsing(Long id);
}
